@use "@/assets/styles/mixin";

.tab-container {
  position: relative;
  @include mixin.flex-align;
  padding: 0 47px 0 27px;
  border-bottom: 1px solid #E2E8F0;
  // 固定项
  .tab-fixed {
    @include mixin.flex-align;
    flex-wrap: nowrap;
  }
  // 滑动按钮
  .tab-list{
    overflow-x: auto;
    margin-left: 40px;
    &__left-arrow{
      position: absolute;
      left: 87px;
      top: 44%;
      transform: translateY(-50%);
      cursor: pointer;
    }
    &__right-arrow{
      position: absolute;
      right: 20px;
      top: 44%;
      transform: translateY(-50%);
      cursor: pointer;
    }
  }
  // 拖拽项
  .tab-item {
    position: relative;
    width: fit-content;
    white-space: nowrap;
    //padding: 25px 0 16px;
    padding: 10px 0 16px;
    text-align: center;
    font-size: 14px;
    color: #606266;
    line-height: 22px;
    cursor: pointer;
    user-select: none;
    &__label{
      padding-bottom: 16px;
    }
    &__icon {
      width: 16px;
      height: 16px;
    }
    &:after{
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      display: none;
      content: "";
      width: 66px;
      height: 3px;
      background-color: #007DFF;
    }
    &+.tab-item {
      //margin-left: 29px;
    }
    &--active {
      color: #007DFF;
      &:after{
        display: block;
      }
    }
  }
// 拖拽
  .tab-start-drag {
    border: 1px solid #e7eaf0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  }
}

#tabsContainer {
  @include mixin.flex;
  flex-wrap: nowrap;
  gap: 0 40px;
  flex: 1;
  overflow-x: auto;
}
.dragArea{
  margin-left: 40px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow: -moz-scrollbars-none;
  &::-webkit-scrollbar {
    display: none;
  }
}

.chosenClass {
  color: #606266 !important;
  background-color: #fff !important;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1) !important;
  border-radius: 4px !important;
  border: 1px solid #007dff !important;
}

.drag-container{
  @include mixin.flex-align;
  overflow-x: auto;
  :deep(.svg-icon){
    font-size: 24px;
    cursor: pointer;
  }
}
